package com.joe.learn.acm;

import java.util.Objects;

public class Tree {


    private String a;

    private String b;

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Tree tree = (Tree) o;
        return Objects.equals(a, tree.a) &&
                Objects.equals(b, tree.b);
    }

    @Override
    public int hashCode() {
        return Objects.hash(a, b);
    }
}
